@import "helper/mixin";
@import "reset";
@import "components/chat";

.reset-dialog {
  position: absolute;
  width: auto;
  .el-dialog__header {
    padding: 0;
  }
  .el-dialog__body {
    padding: 0;
  }
  .el-dialog__headerbtn {
    position: absolute;
    right: 10px;
    top: 4px;
  }
}

.live-container {
  max-width: 540px;
  min-width: 320px;
  margin: 0 auto;
  background-color: #ffffff;
  // position: fixed;
  padding-top: 87px;
  //display: flex;
  //flex-direction: column;
  min-height: 100vh;
  // z-index: 9;
}
.gotoStrategy {
  position: fixed;
  width: 68px;
  height: 30px;
  background-color: rgba(249, 107, 2, 0.5);
  border-radius: 15px 0px 0px 15px;
  right: 0;
  bottom: 193px;
  font-size: 14px;
  color: #ffffff;
  line-height: 30px;
  text-indent: 30px;
  z-index: 1111;
  &:before {
    position: absolute;
    width: 14px;
    height: 17px;
    background: url("./assets/img/celue_icon@2x.png") no-repeat center;
    background-size: cover;
    content: '';
    left: 11px;
    top: 6px;
  }
}
.gotoQQ {
  position: fixed;
  width: 68px;
  height: 30px;
  background-color: rgba(45,137,229,0.5);
  border-radius: 15px 0px 0px 15px;
  right: 0;
  bottom: 238px;
  font-size: 14px;
  color: #ffffff;
  line-height: 30px;
  text-indent: 30px;
  z-index: 1111;
  &:before {
    position: absolute;
    width: 14px;
    height: 17px;
    background: url("./assets/img/kefu_icon@2x.png") no-repeat center;
    background-size: cover;
    content: '';
    left: 11px;
    top: 6px;
  }
}

.live-top {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9;
  background-color: #ffffff;
}

.header {
  height: 46px;
  padding: 0px 12px;
  border-bottom: 1px solid #e7e7e7;
  display: flex;
  .leftTab {
    width: 21px;
    height: 16px;
    margin-top: 15px;
  }
  .title {
    flex-grow: 1;
    text-align: right;
    line-height: 45px;
    font-weight: bold;
    font-size: 18px;
  }
  .user {
    width: 134px;
    text-align: right;
    line-height: 45px;
    color: $primary-color;
    a {
      color: $primary-color;
    }
  }
}

.video {
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  background-color: #c6c6c6;
  z-index: 0;
  overflow: hidden;
  .barrage {
    width: 29px;
    height: 29px;
    position: absolute;
    top: 71px;
    right: 12px;
    z-index: 1111;
  }
  video {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
  }
}
@keyframes myfirst {
  0% {
    right: -195px;
  }
  100% {
    right: 575px;
  }
}

@-webkit-keyframes myfirst /* Safari and Chrome */
{
  0% {
    right: -195px;
  }
  100% {
    right: 575px;
  }
}

.video-tip {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #ffffff;
  transform: translateX(-50%) translateY(-50%);
}

.tab-btn {
  display: flex;
  font-size: 16px;
  color: #fff;
  line-height: 40px;
  background: #1d2841;
  li {
    flex-grow: 1;
    width: 1%;
    text-align: center;
    position: relative;
    height: 40px;
  }
  .active {
    color: #ffffff;
    background-color: $primary-color;
  }
}

.tab-box {
  //position: fixed;
  //bottom: 0;
  //top: 298px;
  width: 100%;
  // flex-grow: 1;
  background-color: #fff;
  //height: 100%;
  //overflow: hidden;
  padding-top: 56.25%;
}

.tab-con {
  //overflow: auto;
  //height: 100%;
}

.flex-3 {
  display: flex;
  > p {
    flex-grow: 1;
    width: 1%;
  }
}

.tab-class {
  font-size: 13px;
  line-height: 30px;
  padding-bottom: 40px;
  li {
    text-align: center;
    height: 40px;
    line-height: 40px;
    font-size: 13px;
    color: #4e4e4e;
    &:nth-of-type(odd) {
      background-color: #ffffff;
    }
    &:nth-of-type(even) {
      background-color: #f8fcff;
      box-shadow: 0px -1px 0px 0px #d9edff, 0px 1px 0px 0px #d9edff;
    }
    &.active {
      color: #de4414;
    }
  }
  p {
    @include ellipsis();
  }
}

.lessonIntroduction {
  width: 350px;
  background-color: #ffffff;
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  img {
    width: 48px;
    height: 48px;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: -73px;
  }
  .lessonTitle {
    color: #2a2a2a;
    font-size: 17px;
    margin-bottom: 10px;
    &:before,&:after {
      content: '';
      display: inline-block;
      width: 18px;
      height: 1px;
      background-color: #000000;
      -webkit-transform: translate(-10px,-6px);
      -moz-transform: translate(-10px,-6px);
      -ms-transform: translate(-10px,-6px);
      -o-transform: translate(-10px,-6px);
      transform: translate(-10px,-6px);
    }
    &:after {
      -webkit-transform: translate(10px,-6px);
      -moz-transform: translate(10px,-6px);
      -ms-transform: translate(10px,-6px);
      -o-transform: translate(10px,-6px);
      transform: translate(10px,-6px);
    }
  }
  .knowledge_points {
    text-align: left;
    color: #414141;
    font-size: 13px;
    max-height: 174px;
    overflow-y: scroll;
  }
}

.leftTabBox {
  width: 212px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.78);
  ul {
    margin-top: 45px;
    li {
      margin-bottom: 10px;
      height: 45px;
      line-height: 45px;
      a {
        display: block;
        font-size: 17px;
        color: #ffffff;
        &.active {
          background: $primary-color;
        }
        i {
          margin-left: 37px;
          display: inline-block;
        }
        &:nth-of-type(1) {
          i {
            width: 22px;
            height: 20px;
            background: url("./assets/img/gongkaike_icon@2x.png") no-repeat center;
            background-size: cover;
            -webkit-transform: translateY(4px);
            -moz-transform: translateY(4px);
            -ms-transform: translateY(4px);
            -o-transform: translateY(4px);
            transform: translateY(4px);
            margin-right: 15px;
          }
        }
        &:nth-of-type(2) {
          i {
            width: 22px;
            height: 18px;
            background: url("./assets/img/peixun_icon@2x.png") no-repeat center;
            background-size: cover;
            -webkit-transform: translateY(3px);
            -moz-transform: translateY(3px);
            -ms-transform: translateY(3px);
            -o-transform: translateY(3px);
            transform: translateY(3px);
            margin-right: 15px;
          }
        }
        &:nth-of-type(3) {
          i {
            width: 20px;
            height: 20px;
            background: url("./assets/img/celue_icon@2.png") no-repeat center;
            background-size: cover;
            -webkit-transform: translateY(4px);
            -moz-transform: translateY(4px);
            -ms-transform: translateY(4px);
            -o-transform: translateY(4px);
            transform: translateY(4px);
            margin-right: 16px;
          }
        }
      }
    }
  }
  .user {
    position: absolute;
    bottom: 68px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    a {
      color: $primary-color;
      font-size: 16px;
    }
    span {
      font-size: 16px;
      color: #8e8e8e;
    }
  }
}

.active-list {
  padding: 10px;
  li {
    border-radius: 3px;
    background-color: #f7f7f7;
    margin-bottom: 10px;
    // @extend .thumbBorder;
    border: 1px solid #e8e8e8;
    position: relative;
    z-index: 2;
  }
  .img {
    height: 130px;
    background-size: cover;
    display: block;
  }
  .info {
    padding: 10px;
    line-height: 26px;
  }
  h3 {
    font-size: 15px;
  }
  .tool {
    font-size: 13px;
    display: flex;
    p {
      flex-grow: 1;
    }
    a {
      display: block;
      width: 70px;
      line-height: 26px;
      height: 26px;
      background-color: #fd8169;
      color: #ffffff;
      text-align: center;
      border-radius: 14px;
    }
    span {
      display: inline-block;
      color: #be2713;
      font-size: 14px;
      height: 14px;
      line-height: 1;
      border: 1px solid;
      border-radius: 3px;
      padding: 2px;
      min-width: 18px;
      text-align: center;
      margin: 0 3px;
      box-sizing: content-box;
    }
  }
}

.chat-bottom {
  @include setTopLine(fixed);
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
}

.chat-face {
  text-align: center;
  background-color: #ffffff;
  height: 140px;
  overflow: auto;
  // @include autoScroll();
  li {
    // float: left;
    padding: 5px;
    display: inline-block;
    vertical-align: top;
  }
}

.chat-input {
  background-color: #f4f5f7;
  display: flex;
  padding: 7px 12px;
  .input {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    display: flex;
    flex-grow: 1;
    background-color: #ffffff;
    padding: 0 4px;
  }
  input {
    flex-grow: 1;
    border: none;
    display: block;
  }
  i {
    background: url("./assets/img/face.png") center / cover no-repeat;
    width: 28px;
    height: 28px;
    display: block;
    margin-top: 3px;
  }
  button {
    margin-left: 8px;
    height: 36px;
    width: 62px;
    color: #ffffff;
    background-color: $primary-color;
    font-size: 15px;
    border-radius: 3px;

  }
}

.red-icon {
  position: fixed;
  background: url("./assets/img/h5-red.png") center / cover no-repeat;
  width: 55px;
  height: 60px;
  bottom: 85px;
  right: 4px;
}

.red-layer {
  width: 100%;
  height: 300px;
  background: url("./assets/img/redbg.png") center top / contain no-repeat #f3f3f3;
  padding: 140px 40px 0;
  .close {
    background: url("./assets/img/close_icon.png") center / contain no-repeat;
    width: 14px;
    height: 14px;
    position: absolute;
    right: 10px;
    top: 10px;
  }
  input {
    display: block;
    width: 100%;
    height: 36px;
    border: 1px solid #e8e8e8;
    padding-left: 6px;
    border-radius: 3px;
  }
  button {
    display: block;
    width: 100%;
    height: 36px;
    margin-top: 26px;
    border-radius: 3px;
    background-color: $primary-color;
    color: #ffffff;
    font-size: 15px;
    &:disabled {
      background-color: #cbcbcb;
    }
  }
  span {
    font-size: 14px;
    color: #1e8eff;
    text-align: center;
    display: block;
    margin-top: 14px;
  }
}

.tab-con {
  //height: 100%;
  //@include autoScroll();
}

.chat-con {
  position: relative;
}

.chat-list {
  padding-bottom: 52px;
}

.dialogue-gift img {
  height: 48px;
}

.dialogue-join img {
  height: 38px;
}

li.dialogueJoin:before {
  top: 9px;
}

.class-other {
  display: flex;
  justify-content: center;
  line-height: 40px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #e8e8e8;
  background-color: #ffffff;
  font-size: 14px;
  color: #333333;
  p {
    margin: 0 5px;
    &:first-child {
      padding-left: 16px;
      color: $primary-color;
      background: url("./assets/img/play_icon.png") left center / 12px 12px no-repeat;
    }
  }
}
.maskBox {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: #000;
  z-index: 1;
}
